package com.molichuxing.services.infrastructure.service;

import java.time.LocalDateTime;

import com.molichuxing.framework.service.RootService;
import com.molichuxing.services.infrastructure.dto.request.create.FaceRecognitionCreateDto;
import com.molichuxing.services.infrastructure.dto.response.FaceRecognitionDto;

/**
 * 
 * @author liyg
 * 身份验证服务
 * 2019-08-15
 * 
 */
public interface FaceRecognitionService extends RootService {

	/**
	 * 获取最近身份验证是否通过  
	 * @param idNumber
	 * @return
	 */
	FaceRecognitionDto getVerifyResult(String idNumber);
	
	/**
	 * 获取验证结果
	 * @param idNumber
	 * @param verifyTime
	 * @return
	 */
	Boolean getVerifyResult(String idNumber,LocalDateTime verifyTime);
	
	/**
	 * 保存
	 * @param createDto
	 * @return
	 */
	Boolean create(FaceRecognitionCreateDto createDto);
}
